<?
require_once(dirname(__FILE__) . "/_includes/config.php");
header("Content-Type: text/html; charset=ISO-8859-1", true);
?>

<script type="text/javascript">
	$(function(){
		$.nyroModalManual({
		  content: $('#loginModalBox').html(),
		  minWidth: 100,
		  minHeight: 150
		});	
		$('#loginModalBox').remove();		
		$('#loginModalForm').submit(function(){
			var form = $(this);
			var url = form.attr('action') + "?ajax=1";
			var data = form.serialize();
			jQuery.post(url, data, function(json) {
				if (json.ok)
				{
					$.nyroModalRemove();
				}
				else
				{
					alert(json.msg);
					$.nyroModalSettings({
						bgColor: '#ff0000'
					});
				}
			}, 'json');
			return false;
		});
	});
	</script>
<div id="loginModalBox" style="display:none">
	<form name="login" id="loginModalForm" method="post" action="login.php">
		<table border="0" align="center" cellpadding="0" cellspacing="0" class="modal-conteudo">
			<tr>
				<td>
					Voc&ecirc; expirou o tempo limite sem intera&ccedil;&atilde;o com o sistema e <br>
					por medida de seguran&ccedil;a precisa validar seus dados novamente.
				</td>
			</tr>
			<tr>
				<td>
					<table border="0" cellspacing="0" cellpadding="5" align="center" class="formArea">
						<tr>
							<td class="formLabel">
								Login:
							</td>
							<td>
								<input name="dc_login" type="text" id="dc_login" class="formInput">
							</td>
						</tr>
						<tr>
							<td class="formLabel">
								Senha:
							</td>
							<td>
								<input name="dc_senha" type="password" id="dc_senha" class="formInput">
							</td>
						</tr>
						<tr>
							<td>
								<input name="checa_login" type="hidden" id="checa_login" value="1">
							</td>
							<td align="right">
								<input name="Submit" type="submit" class="formButton" value="  Entrar  ">
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</form>
</div>